From 11e8cf6c740bdc558d21478f74cfab3aba6f9264 Mon Sep 17 00:00:00 2001 From: "L. Guruprasad" Date: Thu, 17 Nov 2016 02:00:06 +0530 Subject: Fix error in call to map() function --- glucometerutils/drivers/otultra2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glucometerutils/drivers/otultra2.py b/glucometerutils/drivers/otultra2.py index 9bb52d1..9647947 100644 --- a/glucometerutils/drivers/otultra2.py +++ b/glucometerutils/drivers/otultra2.py @@ -115,8 +115,8 @@ def _parse_datetime(response): raise exceptions.InvalidResponse(response) date, time = match.groups() - month, day, year = map(date.split('/'), int) - hour, minute, second = map(time.split(':'), int) + month, day, year = map(int, date.split('/')) + hour, minute, second = map(int, time.split(':')) # Yes, OneTouch2's firmware is not Y2K safe. return datetime.datetime(2000 + year, month, day, hour, minute, second) -- cgit v1.2.3